'''
Created on 08/04/2013

@author: tsantana
'''

import os

COOKIE_KEY='E\x9e-\xab\xfbi\x133\xae"\x9c\xe4\x0bo\xae\xa1e\x93.aK_\x8a\xb6R\xd4\xe2\xa3\x8b\x88\xcf\xd8\xf1\xe8\x1f+\xa7\xd5y\xbc\'c\xa3\xe1:;\x1a\xd7V#\xd5\x99\x1e\x8c\x1a\xd1M\x8fJ\xa1\xbb\x99r\x8a'

#webapp_django_version = '1.0'

from gaesessions import SessionMiddleware
def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = SessionMiddleware(app, cookie_key=COOKIE_KEY)
    app = recording.appstats_wsgi_middleware(app)
    return app